home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 August: Tool Chest / Dev.CD Aug 94.toast / New System Software Extensions / ColorSync™ 1.0.5 / Interfaces / CIncludes / CMComponent.h < prev   
Encoding:
C/C++ Source or Header  |  1994-04-11  |  3.3 KB  |  102 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        CMComponent.h
  3.  
  4.     Copyright:    © 1984-1994 by Apple Computer, Inc., all rights reserved.
  5.  
  6. */
  7.  
  8. #ifndef __CMCOMPONENT__
  9. #define __CMCOMPONENT__
  10.  
  11. #ifndef __TYPES__
  12. #include <Types.h>
  13. /*    #include <ConditionalMacros.h>                                */
  14. /*    #include <MixedMode.h>                                        */
  15. /*        #include <Traps.h>                                        */
  16. #endif
  17.  
  18. #ifndef __QUICKDRAW__
  19. #include <Quickdraw.h>
  20. /*    #include <QuickdrawText.h>                                    */
  21. /*        #include <IntlResources.h>                                */
  22. #endif
  23.  
  24. #ifndef __COMPONENTS__
  25. #include <Components.h>
  26. #endif
  27.  
  28. #ifndef __CMAPPLICATION__
  29. #include <CMApplication.h>
  30. /*    #include <Printing.h>                                        */
  31. /*        #include <Dialogs.h>                                    */
  32. /*            #include <Windows.h>                                */
  33. /*                #include <Events.h>                                */
  34. /*                    #include <OSUtils.h>                        */
  35. /*                #include <Controls.h>                            */
  36. /*                    #include <Menus.h>                            */
  37. /*            #include <TextEdit.h>                                */
  38. #endif
  39.  
  40. #define CMInterfaceVersion 0
  41.  
  42. #define kCMInit 0
  43.  
  44. #define kCMMatchColors 1
  45.  
  46. #define kCMGamutTest 2
  47.  
  48. #define kCMMatchPixMap 3
  49.  
  50. #define kCMCheckPixMap 4
  51.  
  52. #define kCMConcatenateProfiles 5
  53.  
  54. #define ProfileResponderInterfaceRev 0
  55.  
  56. #define kCMGetProfile 0
  57.  
  58. #define kCMSetProfile 1
  59.  
  60. #define kCMSetProfileDescription 2
  61.  
  62. #define kCMGetIndexedProfile 3
  63.  
  64. #define kCMDeleteDeviceProfile 4
  65.  
  66. #define kProfileResponderMaxSelector kCMDeleteDeviceProfile
  67.  
  68. typedef ComponentInstance ProfileResponder;
  69.  
  70. #ifdef __cplusplus
  71. extern "C" {
  72. #endif
  73.  
  74. extern pascal CMError CMInit(ComponentInstance CMSession, CMProfileHandle srcProfile, CMProfileHandle dstProfile)
  75.  FIVEWORDINLINE(0x2F3C, 0x0008, 0, 0x7000, 0xA82A);
  76. extern pascal CMError CMMatchColors(ComponentInstance CMSession, CMColorList myColors, long count)
  77.  FIVEWORDINLINE(0x2F3C, 0x0008, 1, 0x7000, 0xA82A);
  78. extern pascal CMError CMCheckColors(ComponentInstance CMSession, CMColorList myColors, long count, CMGamutResult result)
  79.  FIVEWORDINLINE(0x2F3C, 0x000C, 2, 0x7000, 0xA82A);
  80. extern pascal CMError CMMatchPixMap(ComponentInstance CMSession, PixMap *myPixMap, PixMapCallBackUPP progressProc, long refCon)
  81.  FIVEWORDINLINE(0x2F3C, 0x000c, 3, 0x7000, 0xA82A);
  82. extern pascal CMError CMCheckPixMap(ComponentInstance CMSession, PixMap *myPixMap, PixMapCallBackUPP progressProc, BitMap *myBitMap, long refCon)
  83.  FIVEWORDINLINE(0x2F3C, 0x0010, 4, 0x7000, 0xA82A);
  84. extern pascal CMError CMConcatenateProfiles(ComponentInstance CMSession, CMProfileHandle thru, CMProfileHandle dst, CMProfileHandle *newDst)
  85.  FIVEWORDINLINE(0x2F3C, 0x000C, 5, 0x7000, 0xA82A);
  86. extern pascal CMError CMGetProfile(ProfileResponder myProfileResponder, CMProfileHandle aProfile, CMProfileHandle *returnedProfile)
  87.  FIVEWORDINLINE(0x2F3C, 0x0008, 0, 0x7000, 0xA82A);
  88. extern pascal CMError CMSetProfile(ProfileResponder myProfileResponder, CMProfileHandle newProfile)
  89.  FIVEWORDINLINE(0x2F3C, 0x0004, 1, 0x7000, 0xA82A);
  90. extern pascal CMError CMSetProfileDescription(ProfileResponder myProfileResponder, long DeviceData, CMProfileHandle hProfile)
  91.  FIVEWORDINLINE(0x2F3C, 0x0008, 2, 0x7000, 0xA82A);
  92. extern pascal CMError CMGetIndexedProfile(ProfileResponder myProfileResponder, CMProfileSearchRecordHandle search, CMProfileHandle *returnProfile, long *index)
  93.  FIVEWORDINLINE(0x2F3C, 0x000C, 3, 0x7000, 0xA82A);
  94. extern pascal CMError CMDeleteDeviceProfile(ProfileResponder myProfileResponder, CMProfileHandle deleteMe)
  95.  FIVEWORDINLINE(0x2F3C, 0x0004, 4, 0x7000, 0xA82A);
  96. #ifdef __cplusplus
  97. }
  98. #endif
  99.  
  100. #endif
  101.  
  102.